/*
 * Copyright (C) 2010 TopCoder Inc., All Rights Reserved.
 */
package com.hercules.xre.protocol.testing.netty;

import java.util.List;


/**
 * <p>
 * Interface defining API for ChannelHandler classes that are responsible for delivering XRE commands.
 * </p>
 *
 * <p>
 * <strong>Thread-safety:</strong> Implementing classes need to be thread safe.
 * </p>
 *
 * @author TCSDESIGNER, TCSDEVELOPER
 * @version 1.0
 */
public interface CommandSender {
    /**
     * <p>
     * Method called when command have been successfully delivered.
     * </p>
     *
     * @param commands list of commands that have been delivered.
     *
     * @throws IllegalArgumentException if commands is null, empty or contains null element
     */
    public void commandsDelivered(List<String> commands);
}
